from manim import *


class app(Scene):
    def transform_test(self):
        circle = Circle()
        square = Square()
        triangle = Triangle()
        self.play(Transform(circle, square))
        self.wait()
        self.play(Transform(circle, triangle))
        self.wait()
        self.play(FadeOut(circle))

    def replacement_transform_test(self):
        circle = Circle()
        square = Square()
        triangle = Triangle()
        self.play(ReplacementTransform(circle, square))
        self.wait()
        self.play(ReplacementTransform(square, triangle))
        self.wait()
        self.play(FadeOut(triangle))

    def construct(self):
        self.transform_test()
        self.wait(2)
        self.replacement_transform_test()
